package subscribe

import "onvif_server/internal/model/field"

type AlarmPayload struct {
	ID        int             `json:"id"`
	DeviceId  string          `json:"device_id"`
	Image     string          `json:"image"`
	Video     string          `json:"video"`
	EventType int             `json:"event_type"`
	Ext       string          `json:"ext"`
	Status    int             `json:"status"`
	Remark    string          `json:"remark"`
	Location  string          `json:"location"`
	CreatedAt field.LocalTime `json:"created_at"`
}

func (p *AlarmPayload) Topic() string {
	return TopicAlarm
}
